package com.softeem.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.softeem.pojo.User;
import com.softeem.service.UserService;

@Controller
public class UserController {
	@Resource
	UserService userServiceImpl;
	
	@ResponseBody
	@RequestMapping("/reg.do")
	public Map<String,Object> reg(User user){
		return userServiceImpl.reg(user);
	}

}
